How can I modify my JavaScript code to dynamically increase the size of the 'product' array